Skip to content

Fixing learning hub hero#1360

Merged
aaronpowell merged 2 commits intostagedfrom
fixing-learning-hub-hero
Apr 10, 2026
Merged

Fixing learning hub hero#1360
aaronpowell merged 2 commits intostagedfrom
fixing-learning-hub-hero

Conversation

@aaronpowell
Copy link
Copy Markdown
Contributor

Tweaking how the whitespace is used.

Replaces #1357

Copilot AI review requested due to automatic review settings April 10, 2026 01:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Learning Hub homepage hero markup and global styles to adjust spacing/whitespace behavior in the hero area.

Changes:

  • Adds a global .main-frame padding override.
  • Removes .hero padding rules (including the mobile breakpoint variant).
  • Simplifies the hero title markup from two gradient spans to one, along with formatting-only changes in index.astro.
Show a summary per file
File Description
website/src/styles/global.css Introduces .main-frame padding override and removes hero padding rules affecting layout spacing.
website/src/pages/index.astro Updates hero title markup (single gradient span) and reformats hero/search markup.

Copilot's findings

Comments suppressed due to low confidence (2)

website/src/styles/global.css:210

  • The .hero section padding was removed entirely. Since no other .hero padding rule exists in the codebase, this will change the vertical spacing of the homepage hero (and any other .hero sections) rather than addressing word/whitespace between title spans. Consider restoring the hero padding and fixing the title spacing in a more targeted way (e.g., adjusting spacing on the title spans).

This issue also appears on line 1881 of the same file.

/* Hero Section */
.hero {
  text-align: center;
  position: relative;
  background: transparent;
}

website/src/styles/global.css:1884

  • The mobile .hero padding override inside the @media (max-width: 768px) block was removed. Combined with the base .hero padding removal, the hero now has no explicit vertical padding on small screens, which is likely to regress layout/spacing. Consider reinstating a mobile-specific hero padding rule (or otherwise ensuring consistent hero spacing across breakpoints).
@media (max-width: 768px) {
  .hero-particle {
    opacity: 0.2;
  }
  • Files reviewed: 2/2 changed files
  • Comments generated: 3

padding: 0 24px;
}

.main-frame {
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.main-frame is introduced here, but there are no other references to main-frame in the repo sources (only this CSS rule). If this is meant to override a Starlight/third-party layout class, it should be scoped (e.g., under body:has(#main-content) / #main-content) and/or documented; otherwise consider removing it to avoid a global, hard-to-trace layout override.

Suggested change
.main-frame {
body:has(#main-content) .main-frame {

Copilot uses AI. Check for mistakes.
<h1 id="hero-heading">
<span class="gradient-text">Awesome</span>
<span class="gradient-text-alt">GitHub Copilot</span>
<span class="gradient-text">Awesome GitHub Copilot</span>
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hero heading was changed from two spans (gradient-text + gradient-text-alt) to a single gradient-text span. This changes the intended visual design (single gradient instead of two) and leaves the .gradient-text-alt styling unused; if the goal is just to fix the extra gap between “Awesome” and “GitHub Copilot”, it would be more targeted to keep the two spans and adjust the spacing/margin on the second span instead.

Suggested change
<span class="gradient-text">Awesome GitHub Copilot</span>
<span class="gradient-text">Awesome</span>
<span class="gradient-text-alt">GitHub Copilot</span>

Copilot uses AI. Check for mistakes.
Comment on lines 34 to 38
<section class="hero" aria-labelledby="hero-heading">
<div class="container">
<h1 id="hero-heading">
<span class="gradient-text">Awesome</span>
<span class="gradient-text-alt">GitHub Copilot</span>
<span class="gradient-text">Awesome GitHub Copilot</span>
</h1>
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description mentions only changing .gradient-text-alt margin-left, but the implementation instead removes the .gradient-text-alt span and also changes global hero/layout spacing. Please update the PR description to match the actual approach, or adjust the changes to align with the stated intent (a targeted word-spacing fix).

Copilot uses AI. Check for mistakes.
@aaronpowell aaronpowell merged commit e838306 into staged Apr 10, 2026
10 checks passed
@aaronpowell aaronpowell deleted the fixing-learning-hub-hero branch April 10, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants